﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Kunde/WebsiteCustomer.Master" AutoEventWireup="true" CodeBehind="Faktura.aspx.cs" Inherits="TireService.Website.Kunde.Faktura" %>

<%@ Register Assembly="DevExpress.Web.ASPxGridView.v11.1, Version=11.1.12.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dxwgv" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v11.1, Version=11.1.12.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register assembly="DevExpress.Web.v11.1, Version=11.1.12.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPanel" tagprefix="dx" %>


<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="server">


    <h3>Faktura</h3>

    <dxwgv:ASPxGridView ID="gvInvoice" runat="server" ClientInstanceName="gvInvoice" 
        KeyFieldName="Number" AutoGenerateColumns="False" EnableCallBacks="True">
        <SettingsText EmptyDataRow="Ingen faktura'er" />
        <SettingsLoadingPanel Text="Henter&amp;hellip;" />
        <SettingsPager AlwaysShowPager="False" PageSize="10" Position="Bottom">
            <Summary 
                AllPagesText="Sider: {0} - {1} ({2} faktura'er)" 
                Text="Side {0} af {1} ({2} faktura'er)" />
        </SettingsPager>
        <SettingsBehavior ConfirmDelete="True" AllowGroup="true" AllowDragDrop="true" />
        <Columns>
            <%--<dxwgv:GridViewCommandColumn>
                <CustomButtons>
                    <dxwgv:GridViewCommandColumnCustomButton ID="ShowInvoice" Text="Vis"></dxwgv:GridViewCommandColumnCustomButton>
                </CustomButtons>
            </dxwgv:GridViewCommandColumn>--%>
            <dxwgv:GridViewDataHyperLinkColumn FieldName="Number" VisibleIndex="3" Caption="Vis faktura">
                <PropertiesHyperLinkEdit NavigateUrlFormatString="~/Reports/View/Faktura.aspx?InvoiceId={0}" Target="_blank" Text="Vis" >
                </PropertiesHyperLinkEdit>
            </dxwgv:GridViewDataHyperLinkColumn>
            <dxwgv:GridViewDataColumn FieldName="Number" VisibleIndex="4" Caption="Fakturanr">
            </dxwgv:GridViewDataColumn>
            <dxwgv:GridViewDataColumn FieldName="Date" VisibleIndex="4" Caption="Fakturadato">
            </dxwgv:GridViewDataColumn>
            <dxwgv:GridViewDataColumn FieldName="DueDate" VisibleIndex="4" Caption="Forfaldsdato">
            </dxwgv:GridViewDataColumn>
            <dxwgv:GridViewDataColumn FieldName="GrossAmount" VisibleIndex="5" Caption="Total">
            </dxwgv:GridViewDataColumn>
            <dxwgv:GridViewDataColumn FieldName="Remainder" VisibleIndex="5" Caption="Udestående">
            </dxwgv:GridViewDataColumn>
        </Columns>
        <Settings ShowFooter="True" />
        <TotalSummary>
            <dxwgv:ASPxSummaryItem FieldName="GrossAmount" SummaryType="Sum" />
            <dxwgv:ASPxSummaryItem FieldName="Remainder" SummaryType="Sum" />
        </TotalSummary>                                            
    </dxwgv:ASPxGridView>

</asp:Content>
